<template>
  <div>
    <h1>App组件</h1>
    {{ str }}
    <Count v-model:countValue="str"/>
    <hr>
    VUE3 v-model 本质
    <Count :countValue="str" @update:countValue="str=$event"/>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";

export default defineComponent({
  name: "App",
});

</script>

<script lang="ts" setup>
// 引入组件
import Count from "./components/Count/index.vue";
import {ref} from "vue";

const str = ref('a')

</script>

<style scoped>

</style>